package com.api.shopapi.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.api.shopapi.entity.CheckinAssessGroup;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author maochuan
 */
@Service
public interface CheckinAssessGroupService {
    int insert(CheckinAssessGroup checkinAssessGroup,JSONArray assessItemArr);

    int updateByCheckinAssessGroupCode(CheckinAssessGroup checkinAssessGroup,JSONArray assessItemArr);

    int deleteByCheckinAssessGroupCode(String checkinAssessGroupCode);


    CheckinAssessGroup getByCheckinAssessGroupCode(String checkinAssessGroupCode);

    CheckinAssessGroup getByNameAndInstitutionCode(String name, String institutionCode);

    PageInfo<CheckinAssessGroup> getPageList(int pageIndex, int pageSize, String institutionCode,int status,String checkinAssessClassCode,String name);

    List<CheckinAssessGroup> getList(String institutionCode);

    List<CheckinAssessGroup> getByCheckinAssessClassCode(String checkinAssessClassCode);


    PageInfo<CheckinAssessGroup> pageByGovCode(int pageIndex, int pageSize, String governmentCode,int status,String checkinAssessClassCode,String name);


}
